/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.impl.BaseModelImpl;

import java.io.Serializable;

import java.lang.reflect.Proxy;

import java.util.Date;

/**
 * @author Wole Adetiba
 */
public class Property_InformationClp extends BaseModelImpl<Property_Information>
	implements Property_Information {
	public Property_InformationClp() {
	}

	public String getPrimaryKey() {
		return _applicationId;
	}

	public void setPrimaryKey(String pk) {
		setApplicationId(pk);
	}

	public Serializable getPrimaryKeyObj() {
		return _applicationId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getPropertyType() {
		return _propertyType;
	}

	public void setPropertyType(String propertyType) {
		_propertyType = propertyType;
	}

	public String getBlockNo() {
		return _blockNo;
	}

	public void setBlockNo(String blockNo) {
		_blockNo = blockNo;
	}

	public String getPlotNo() {
		return _plotNo;
	}

	public void setPlotNo(String plotNo) {
		_plotNo = plotNo;
	}

	public Double getArea() {
		return _area;
	}

	public void setArea(Double area) {
		_area = area;
	}

	public String getUom() {
		return _uom;
	}

	public void setUom(String uom) {
		_uom = uom;
	}

	public String getLandLocation() {
		return _landLocation;
	}

	public void setLandLocation(String landLocation) {
		_landLocation = landLocation;
	}

	public String getCity() {
		return _city;
	}

	public void setCity(String city) {
		_city = city;
	}

	public String getState() {
		return _state;
	}

	public void setState(String state) {
		_state = state;
	}

	public String getCountry() {
		return _country;
	}

	public void setCountry(String country) {
		_country = country;
	}

	public Date getOrigCofODate() {
		return _origCofODate;
	}

	public void setOrigCofODate(Date origCofODate) {
		_origCofODate = origCofODate;
	}

	public String getOtherUsefulInformation() {
		return _otherUsefulInformation;
	}

	public void setOtherUsefulInformation(String otherUsefulInformation) {
		_otherUsefulInformation = otherUsefulInformation;
	}

	public String getAllocationMadToYou() {
		return _allocationMadToYou;
	}

	public void setAllocationMadToYou(String allocationMadToYou) {
		_allocationMadToYou = allocationMadToYou;
	}

	public String getAssignedToYou() {
		return _assignedToYou;
	}

	public void setAssignedToYou(String assignedToYou) {
		_assignedToYou = assignedToYou;
	}

	public String getLocationType() {
		return _locationType;
	}

	public void setLocationType(String locationType) {
		_locationType = locationType;
	}

	public String getLga() {
		return _lga;
	}

	public void setLga(String lga) {
		_lga = lga;
	}

	public String getTown() {
		return _town;
	}

	public void setTown(String town) {
		_town = town;
	}

	public String getVillage() {
		return _village;
	}

	public void setVillage(String village) {
		_village = village;
	}

	public String getTerm() {
		return _term;
	}

	public void setTerm(String term) {
		_term = term;
	}

	public String getEstDevCost() {
		return _estDevCost;
	}

	public void setEstDevCost(String estDevCost) {
		_estDevCost = estDevCost;
	}

	public Date getEstStartDate() {
		return _estStartDate;
	}

	public void setEstStartDate(Date estStartDate) {
		_estStartDate = estStartDate;
	}

	public Property_Information toEscapedModel() {
		if (isEscapedModel()) {
			return this;
		}
		else {
			return (Property_Information)Proxy.newProxyInstance(Property_Information.class.getClassLoader(),
				new Class[] { Property_Information.class },
				new AutoEscapeBeanHandler(this));
		}
	}

	public Object clone() {
		Property_InformationClp clone = new Property_InformationClp();

		clone.setApplicationId(getApplicationId());
		clone.setUserId(getUserId());
		clone.setPropertyType(getPropertyType());
		clone.setBlockNo(getBlockNo());
		clone.setPlotNo(getPlotNo());
		clone.setArea(getArea());
		clone.setUom(getUom());
		clone.setLandLocation(getLandLocation());
		clone.setCity(getCity());
		clone.setState(getState());
		clone.setCountry(getCountry());
		clone.setOrigCofODate(getOrigCofODate());
		clone.setOtherUsefulInformation(getOtherUsefulInformation());
		clone.setAllocationMadToYou(getAllocationMadToYou());
		clone.setAssignedToYou(getAssignedToYou());
		clone.setLocationType(getLocationType());
		clone.setLga(getLga());
		clone.setTown(getTown());
		clone.setVillage(getVillage());
		clone.setTerm(getTerm());
		clone.setEstDevCost(getEstDevCost());
		clone.setEstStartDate(getEstStartDate());

		return clone;
	}

	public int compareTo(Property_Information property_Information) {
		int value = 0;

		value = getApplicationId()
					.compareTo(property_Information.getApplicationId());

		if (value != 0) {
			return value;
		}

		return 0;
	}

	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}

		Property_InformationClp property_Information = null;

		try {
			property_Information = (Property_InformationClp)obj;
		}
		catch (ClassCastException cce) {
			return false;
		}

		String pk = property_Information.getPrimaryKey();

		if (getPrimaryKey().equals(pk)) {
			return true;
		}
		else {
			return false;
		}
	}

	public int hashCode() {
		return getPrimaryKey().hashCode();
	}

	public String toString() {
		StringBundler sb = new StringBundler(45);

		sb.append("{applicationId=");
		sb.append(getApplicationId());
		sb.append(", userId=");
		sb.append(getUserId());
		sb.append(", propertyType=");
		sb.append(getPropertyType());
		sb.append(", blockNo=");
		sb.append(getBlockNo());
		sb.append(", plotNo=");
		sb.append(getPlotNo());
		sb.append(", area=");
		sb.append(getArea());
		sb.append(", uom=");
		sb.append(getUom());
		sb.append(", landLocation=");
		sb.append(getLandLocation());
		sb.append(", city=");
		sb.append(getCity());
		sb.append(", state=");
		sb.append(getState());
		sb.append(", country=");
		sb.append(getCountry());
		sb.append(", origCofODate=");
		sb.append(getOrigCofODate());
		sb.append(", otherUsefulInformation=");
		sb.append(getOtherUsefulInformation());
		sb.append(", allocationMadToYou=");
		sb.append(getAllocationMadToYou());
		sb.append(", assignedToYou=");
		sb.append(getAssignedToYou());
		sb.append(", locationType=");
		sb.append(getLocationType());
		sb.append(", lga=");
		sb.append(getLga());
		sb.append(", town=");
		sb.append(getTown());
		sb.append(", village=");
		sb.append(getVillage());
		sb.append(", term=");
		sb.append(getTerm());
		sb.append(", estDevCost=");
		sb.append(getEstDevCost());
		sb.append(", estStartDate=");
		sb.append(getEstStartDate());
		sb.append("}");

		return sb.toString();
	}

	public String toXmlString() {
		StringBundler sb = new StringBundler(70);

		sb.append("<model><model-name>");
		sb.append("com.crossriver.crgis.database.model.Property_Information");
		sb.append("</model-name>");

		sb.append(
			"<column><column-name>applicationId</column-name><column-value><![CDATA[");
		sb.append(getApplicationId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>userId</column-name><column-value><![CDATA[");
		sb.append(getUserId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>propertyType</column-name><column-value><![CDATA[");
		sb.append(getPropertyType());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>blockNo</column-name><column-value><![CDATA[");
		sb.append(getBlockNo());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>plotNo</column-name><column-value><![CDATA[");
		sb.append(getPlotNo());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>area</column-name><column-value><![CDATA[");
		sb.append(getArea());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>uom</column-name><column-value><![CDATA[");
		sb.append(getUom());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>landLocation</column-name><column-value><![CDATA[");
		sb.append(getLandLocation());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>city</column-name><column-value><![CDATA[");
		sb.append(getCity());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>state</column-name><column-value><![CDATA[");
		sb.append(getState());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>country</column-name><column-value><![CDATA[");
		sb.append(getCountry());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>origCofODate</column-name><column-value><![CDATA[");
		sb.append(getOrigCofODate());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>otherUsefulInformation</column-name><column-value><![CDATA[");
		sb.append(getOtherUsefulInformation());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>allocationMadToYou</column-name><column-value><![CDATA[");
		sb.append(getAllocationMadToYou());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>assignedToYou</column-name><column-value><![CDATA[");
		sb.append(getAssignedToYou());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>locationType</column-name><column-value><![CDATA[");
		sb.append(getLocationType());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>lga</column-name><column-value><![CDATA[");
		sb.append(getLga());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>town</column-name><column-value><![CDATA[");
		sb.append(getTown());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>village</column-name><column-value><![CDATA[");
		sb.append(getVillage());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>term</column-name><column-value><![CDATA[");
		sb.append(getTerm());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>estDevCost</column-name><column-value><![CDATA[");
		sb.append(getEstDevCost());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>estStartDate</column-name><column-value><![CDATA[");
		sb.append(getEstStartDate());
		sb.append("]]></column-value></column>");

		sb.append("</model>");

		return sb.toString();
	}

	private String _applicationId;
	private String _userId;
	private String _propertyType;
	private String _blockNo;
	private String _plotNo;
	private Double _area;
	private String _uom;
	private String _landLocation;
	private String _city;
	private String _state;
	private String _country;
	private Date _origCofODate;
	private String _otherUsefulInformation;
	private String _allocationMadToYou;
	private String _assignedToYou;
	private String _locationType;
	private String _lga;
	private String _town;
	private String _village;
	private String _term;
	private String _estDevCost;
	private Date _estStartDate;
}